package com.cssl.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class DtsGoods implements Serializable{


    /**
     * 商品id
     */
    Integer id;
    /**
     * 商品编号
     */
    String goodsSn;
    /**
     * 商品名称
     */
    String name;
    /**
     * 商品所属类名Id
     */
    Integer categoryId;
    /**
     * 商品品牌id
     */
    Integer brandId;
    /**
     * 商品宣传图片列表
     */
    String gallery;
    /**
     * 商品关键字
     */
    String keyWords;
    /**
     * 商品简介
     */
    String brief;
    /**
     * 是否上架
     */
    String isOnSale;
    /**
     * 排序顺序
     */
    Integer sortOrder;
    /**
     * 商品页面商品图片
     */
    String picUrl;
    /**
     * 商品分享朋友圈图片
     */
    String shareUrl;
    /**
     * 是否新品首发
     */
    Integer isNew;
    /**
     * 是否人气推荐
     */
    Integer isHot;
    /**
     * 单位
     */
    String unit;
    /**
     * 专柜价格
     */
    Double counterPrice;
    /**
     * 零售价格
     */
    Double retailPrice;
    /**
     * 商品详细介绍
     */
    String detail;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    Date addTime;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    Date updateTime;
    /**
     * 浏览量
     */
    Integer browse;
    /**
     * 已销售总量
     */
    Integer sales;
    /**
     逻辑删除
     */
    Integer deleted;
    /**
     * 供货单位
     */
    String commpany;
    /**
     * 批发价格
     */
    Double wholesalePrice;
    /**
     * 审批状态
     * 4.未提交
     * 0.待审批
     * 1.审批通过
     * 2.审批拒绝
     */
    Integer approveStatus;
    /**
     * 审批内容
     */
    String approveMsg;
    /**
     * 佣金类型
     * 0.推广佣金
     * 1.自定义佣金
     * 2.代理审批比例
     */
    Integer brokerageType;
    /**
     * 推广佣金类型
     */
    Double brokeragePrice;


    @Override
    public String toString() {
        return "DtsGoods{" +
                "id=" + id +
                ", goodsSn='" + goodsSn + '\'' +
                ", name='" + name + '\'' +
                ", categoryId=" + categoryId +
                ", brandId=" + brandId +
                ", gallery='" + gallery + '\'' +
                ", keyWords='" + keyWords + '\'' +
                ", brief='" + brief + '\'' +
                ", isOnSale='" + isOnSale + '\'' +
                ", sortOrder=" + sortOrder +
                ", picUrl='" + picUrl + '\'' +
                ", shareUrl='" + shareUrl + '\'' +
                ", isNew=" + isNew +
                ", isHot=" + isHot +
                ", unit='" + unit + '\'' +
                ", counterPrice=" + counterPrice +
                ", retailPrice=" + retailPrice +
                ", detail='" + detail + '\'' +
                ", addTime=" + addTime +
                ", updateTime=" + updateTime +
                ", browse=" + browse +
                ", sales=" + sales +
                ", deleted=" + deleted +
                ", commpany='" + commpany + '\'' +
                ", wholesalePrice=" + wholesalePrice +
                ", approveStatus=" + approveStatus +
                ", approveMsg='" + approveMsg + '\'' +
                ", brokerageType=" + brokerageType +
                ", brokeragePrice=" + brokeragePrice +
                '}';
    }

    public DtsGoods() {

    }

    public DtsGoods(Integer id, String goodsSn, String name, Integer categoryId, Integer brandId, String gallery, String keyWords, String brief, String isOnSale, Integer sortOrder, String picUrl, String shareUrl, Integer isNew, Integer isHot, String unit, Double counterPrice, Double retailPrice, String detail, Date addTime, Date updateTime, Integer browse, Integer sales, Integer deleted, String commpany, Double wholesalePrice, Integer approveStatus, String approveMsg, Integer brokerageType, Double brokeragePrice) {
        this.id = id;
        this.goodsSn = goodsSn;
        this.name = name;
        this.categoryId = categoryId;
        this.brandId = brandId;
        this.gallery = gallery;
        this.keyWords = keyWords;
        this.brief = brief;
        this.isOnSale = isOnSale;
        this.sortOrder = sortOrder;
        this.picUrl = picUrl;
        this.shareUrl = shareUrl;
        this.isNew = isNew;
        this.isHot = isHot;
        this.unit = unit;
        this.counterPrice = counterPrice;
        this.retailPrice = retailPrice;
        this.detail = detail;
        this.addTime = addTime;
        this.updateTime = updateTime;
        this.browse = browse;
        this.sales = sales;
        this.deleted = deleted;
        this.commpany = commpany;
        this.wholesalePrice = wholesalePrice;
        this.approveStatus = approveStatus;
        this.approveMsg = approveMsg;
        this.brokerageType = brokerageType;
        this.brokeragePrice = brokeragePrice;
    }

    public Integer getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(Integer sortOrder) {
        this.sortOrder = sortOrder;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGoodsSn() {
        return goodsSn;
    }

    public void setGoodsSn(String goodsSn) {
        this.goodsSn = goodsSn;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    public String getGallery() {
        return gallery;
    }

    public void setGallery(String gallery) {
        this.gallery = gallery;
    }

    public String getKeyWords() {
        return keyWords;
    }

    public void setKeyWords(String keyWords) {
        this.keyWords = keyWords;
    }

    public String getBrief() {
        return brief;
    }

    public void setBrief(String brief) {
        this.brief = brief;
    }

    public String getIsOnSale() {
        return isOnSale;
    }

    public void setIsOnSale(String isOnSale) {
        this.isOnSale = isOnSale;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public String getShareUrl() {
        return shareUrl;
    }

    public void setShareUrl(String shareUrl) {
        this.shareUrl = shareUrl;
    }

    public Integer getIsNew() {
        return isNew;
    }

    public void setIsNew(Integer isNew) {
        this.isNew = isNew;
    }

    public Integer getIsHot() {
        return isHot;
    }

    public void setIsHot(Integer isHot) {
        this.isHot = isHot;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Double getCounterPrice() {
        return counterPrice;
    }

    public void setCounterPrice(Double counterPrice) {
        this.counterPrice = counterPrice;
    }

    public Double getRetailPrice() {
        return retailPrice;
    }

    public void setRetailPrice(Double retailPrice) {
        this.retailPrice = retailPrice;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getBrowse() {
        return browse;
    }

    public void setBrowse(Integer browse) {
        this.browse = browse;
    }

    public Integer getSales() {
        return sales;
    }

    public void setSales(Integer sales) {
        this.sales = sales;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public String getCommpany() {
        return commpany;
    }

    public void setCommpany(String commpany) {
        this.commpany = commpany;
    }

    public Double getWholesalePrice() {
        return wholesalePrice;
    }

    public void setWholesalePrice(Double wholesalePrice) {
        this.wholesalePrice = wholesalePrice;
    }

    public Integer getApproveStatus() {
        return approveStatus;
    }

    public void setApproveStatus(Integer approveStatus) {
        this.approveStatus = approveStatus;
    }

    public String getApproveMsg() {
        return approveMsg;
    }

    public void setApproveMsg(String approveMsg) {
        this.approveMsg = approveMsg;
    }

    public Integer getBrokerageType() {
        return brokerageType;
    }

    public void setBrokerageType(Integer brokerageType) {
        this.brokerageType = brokerageType;
    }

    public Double getBrokeragePrice() {
        return brokeragePrice;
    }

    public void setBrokeragePrice(Double brokeragePrice) {
        this.brokeragePrice = brokeragePrice;
    }
}
